package com.wish.thriftclient.to;

import com.facebook.swift.codec.ThriftField;
import com.facebook.swift.codec.ThriftStruct;
import com.wish.thriftclient.domain.OrderDO;
import lombok.Data;

/**
 * OrderTO 数据传输TO订单对象
 * 注意：使用@ThriftField注解，可以直接放置在public变量上面，或者放置在private变量的public get方法上面
 * @author tantexian
 * @since 2017/9/27
 */
@ThriftStruct
@Data
public class OrderTO extends OrderDO {
    /**
     * 订单备注
     */
    @ThriftField(value = 3, requiredness = ThriftField.Requiredness.OPTIONAL)
    public String comment;

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    @Override
    public String toString() {
        return super.toString()
                + "OrderTO{" +
                "comment='" + comment + '\'' +
                '}';
    }
}
